import RestClient from "@/driver/RestClient"

const CommentService = {
    /**
     * 评论点赞.
     * @param id
     * @param callback
     * @param failCallback
     */
    addFavour(id, callback, failCallback) {
        RestClient.post(`/api/v1/comments/${id}/actions/favour`, {}, callback, failCallback)
    }
}

export default CommentService